package com.ra.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Author : 今晚几点睡_Ada
 * Date: 2023/3/9
 * Time: 10:56
 * 注:
 */
@Getter
@AllArgsConstructor
public  enum  StatusCodeEnum{

    SUCCESS(200, "操作成功"),

    NO_LOGIN(401, "用户未登录"),

    AUTHORIZED(403, "没有操作权限"),

    SYSTEM_ERROR(500, "系统异常"),

    ERROR(510, "操作失败"),

    VALID_ERROR(520, "参数格式不正确"),

    USERNAME_EXIST(521, "用户名已存在"),

    USERNAME_NOT_EXIST(522, "用户名不存在");



    private final Integer code;
    private final String desc;




}
